import {Documentation} from 'documittu-template-default/dist/components/ui/docs' import glamorous from 'glamorous' import * as React from 'react' import {Checkbox, Select, Switch, TextField} from '../../../lib' import {Example} from '../../components/Example' import {State} from '../../components/State' export const attributes = { title: 'Inputs', } const InputExample = glamorous.div(({slim}: {slim?: boolean}) => ({ paddingTop: slim ? 8 : 24, paddingBottom: slim ? 8 : 24, })) export default () => (

react-material-app provides wrappers around the input components in material-ui. These wrappers provide a higher level API with the common pattern of mirrored value and onChange{' '} properties. The intent is to provide a single component with props for common configurations. If you instead want to use the material-ui components in a non standard way, you are better of using them directly.

{(value: boolean, setValue) => ( <> )} {(value: boolean, setValue) => ( <> )} {(value: string, setValue) => ( <> )} {(value: string | undefined, setValue) => ( )} {(value: string | undefined, setValue) => ( )} {/* MultiSelect */}
)